/*
 * Powered By [rapid-framework]
 * Web Site: http://www.rapid-framework.org.cn
 * Google Code: http://code.google.com/p/rapid-framework/
 * Since 2008 - 2018
 */

package com.hzyb.shopCommodity.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.validator.constraints.Length;

/**
 * @author badqiu email:badqiu(a)gmail.com
 * @version 1.0
 * @since 1.0
 */


@Entity
@Table(name = "shop_commodity")
public class ShopCommodity {

	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	@Length(max=50)
	private java.lang.String commoditySid;
	@Length(max=50)
	private java.lang.String categoriesSid;
	@Length(max=30)
	private java.lang.String code;
	@Length(max=300)
	private java.lang.String name;
	@Length(max=500)
	private java.lang.String description;
	@Length(max=50)
	private java.lang.String enterUserid;
	
	private java.util.Date enterDate;
	@Length(max=50)
	private java.lang.String updateUserid;
	
	private java.util.Date updateDate;
	@Length(max=20)
	private java.lang.String unitPrice;
	@Length(max=50)
	private java.lang.String fileId;
	@Length(max=1)
	private java.lang.String isActivate;
	@Length(max=255)
	private java.lang.String enterOpenid;
	@Length(max=255)
	private java.lang.String updateOpenid;
	@Length(max=50)
	private java.lang.String merchantSid;
	
	private String shippingCost;
	private String originalPrice;
	private String sales;
	@Column(name="sales")
	public String getSales() {
		return sales;
	}

	public void setSales(String sales) {
		this.sales = sales;
	}

	@Column(name="shipping_cost")
	public String getShippingCost() {
		return shippingCost;
	}

	public void setShippingCost(String shippingCost) {
		this.shippingCost = shippingCost;
	}

	@Column(name="original_price")
	public String getOriginalPrice() {
		return originalPrice;
	}

	public void setOriginalPrice(String originalPrice) {
		this.originalPrice = originalPrice;
	}

	@Column(name="address")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	private String address;
	//columns END


	public ShopCommodity(){
	}

	public ShopCommodity(
		java.lang.String commoditySid
	){
		this.commoditySid = commoditySid;
	}

	

	public void setCommoditySid(java.lang.String value) {
		this.commoditySid = value;
	}
	
	@Id 
	@Column(name = "commodity_sid", unique = true, nullable = false, insertable = true, updatable = true, length = 50)
	public java.lang.String getCommoditySid() {
		return this.commoditySid;
	}
	
	@Column(name = "categories_sid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getCategoriesSid() {
		return this.categoriesSid;
	}
	
	public void setCategoriesSid(java.lang.String value) {
		this.categoriesSid = value;
	}
	
	@Column(name = "code", unique = false, nullable = true, insertable = true, updatable = true, length = 30)
	public java.lang.String getCode() {
		return this.code;
	}
	
	public void setCode(java.lang.String value) {
		this.code = value;
	}
	
	@Column(name = "name", unique = false, nullable = true, insertable = true, updatable = true, length = 300)
	public java.lang.String getName() {
		return this.name;
	}
	
	public void setName(java.lang.String value) {
		this.name = value;
	}
	
	@Column(name = "description", unique = false, nullable = true, insertable = true, updatable = true, length = 500)
	public java.lang.String getDescription() {
		return this.description;
	}
	
	public void setDescription(java.lang.String value) {
		this.description = value;
	}
	
	@Column(name = "enter_userid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getEnterUserid() {
		return this.enterUserid;
	}
	
	public void setEnterUserid(java.lang.String value) {
		this.enterUserid = value;
	}
	
	
	
	@Column(name = "enter_date", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public java.util.Date getEnterDate() {
		return this.enterDate;
	}
	
	public void setEnterDate(java.util.Date value) {
		this.enterDate = value;
	}
	
	@Column(name = "update_userid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getUpdateUserid() {
		return this.updateUserid;
	}
	
	public void setUpdateUserid(java.lang.String value) {
		this.updateUserid = value;
	}
	
	
	
	@Column(name = "update_date", unique = false, nullable = true, insertable = true, updatable = true, length = 0)
	public java.util.Date getUpdateDate() {
		return this.updateDate;
	}
	
	public void setUpdateDate(java.util.Date value) {
		this.updateDate = value;
	}
	
	@Column(name = "unit_price", unique = false, nullable = true, insertable = true, updatable = true, length = 20)
	public java.lang.String getUnitPrice() {
		return this.unitPrice;
	}
	
	public void setUnitPrice(java.lang.String value) {
		this.unitPrice = value;
	}
	
	@Column(name = "file_id", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getFileId() {
		return this.fileId;
	}
	
	public void setFileId(java.lang.String value) {
		this.fileId = value;
	}
	
	@Column(name = "is_activate", unique = false, nullable = true, insertable = true, updatable = true, length = 1)
	public java.lang.String getIsActivate() {
		return this.isActivate;
	}
	
	public void setIsActivate(java.lang.String value) {
		this.isActivate = value;
	}
	
	@Column(name = "enter_openid", unique = false, nullable = true, insertable = true, updatable = true, length = 255)
	public java.lang.String getEnterOpenid() {
		return this.enterOpenid;
	}
	
	public void setEnterOpenid(java.lang.String value) {
		this.enterOpenid = value;
	}
	
	@Column(name = "update_openid", unique = false, nullable = true, insertable = true, updatable = true, length = 255)
	public java.lang.String getUpdateOpenid() {
		return this.updateOpenid;
	}
	
	public void setUpdateOpenid(java.lang.String value) {
		this.updateOpenid = value;
	}
	
	@Column(name = "merchant_sid", unique = false, nullable = true, insertable = true, updatable = true, length = 50)
	public java.lang.String getMerchantSid() {
		return this.merchantSid;
	}
	
	public void setMerchantSid(java.lang.String value) {
		this.merchantSid = value;
	}
	
}

